let n = new Date()
console.log(n)
console.log(n.toDateString())
console.log(n.toLocaleString())

let y = n.getFullYear()
let m = (n.getMonth() + 1).toString().padStart(2, '0')
let d = n.getDate().toString().padStart(2, '0')
let h = n.getHours().toString().padStart(2, '0')
let mi = n.getMinutes().toString().padStart(2, '0')
let s = n.getSeconds().toString().padStart(2, '0')
let ws = '日一二三四五六'.charAt(n.getDay())
let info = `${y}年${m}月${d}日 ${h}时${mi}分${s}秒 星期${ws}`
console.log(info)
